<script type="text/javascript">

	function validateForm(){
		var form = document.forms[0]; 
		if (form.name.value == "")
			alert('Debe ingresar un nombre de pagina');	
		else if (form.title.value == "")
			alert('Debe ingresar un titulo');	
		else if (form.idWebSite.value == "")
			alert('Debe seleccionar un sitio');	
		else if (form.idSheet.value == "")
			alert('Debe seleccionar una plantilla');					
		else
			form.submit();
	} 

	function cancelar() {
		window.location.href='<%=request.getContextPath() %>/sitePageList.do';
	} 
</script>

<tr align="left" bgcolor="#F3F9FC">
	<td>Nombre:</td>
	<td><html:text property="name" /></td>
</tr>
<tr>
	<td>T&iacute;tulo:</td>
	<td><html:text property="title" /></td>
</tr>

<tr>	
	<td>Contexto:</td>
	<td><html:text property="contextPath" /></td>
</tr>

<tr>	
	<td>Sitio:</td>
	<td>
		<html:select property="idWebSite">
					<option value="">Seleccione...</option>
					<html:optionsCollection name="sitePageEditForm" property="webSites" value="id" label="name"/> 
		</html:select>

	</td>
</tr>

<tr>	
	<td>Plantilla:</td>
	<td>
		<html:select property="idSheet">
					<option value="">Seleccione...</option>
					<html:optionsCollection name="sitePageEditForm" property="sheets" value="id" label="name"/> 
		</html:select>

	</td>
</tr>




